/*
 * UnitDestroyedEvent.h
 *
 *  Created on: Oct 14, 2008
 *      Author: Ryan
 */

#ifndef UNITDESTROYEDEVENT_H_
#define UNITDESTROYEDEVENT_H_

#include "GameEvent.h"

namespace OOInterface
{

class UnitDestroyedEvent: public OOInterface::GameEvent
{
public:
	UnitDestroyedEvent( ConstUnitPtr destroyed, ConstUnitPtr attacker) : _destroyed( destroyed ), _attacker( attacker ) {}
	virtual ~UnitDestroyedEvent(){}

	ConstUnitPtr getDestroyed() const { return _destroyed; }
	ConstUnitPtr getAttacker() const { return _attacker; }

	virtual std::string toString() const{ return std::string("Event: Unit Destroyed"); }


private:
	ConstUnitPtr _destroyed;
	ConstUnitPtr _attacker;
};

}

#endif /* UNITDESTROYEDEVENT_H_ */
